﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Models;

namespace CSMF
{
    public partial class PostPoint : System.Web.UI.UserControl
    {

        public PostPointModel postPointModel = null;


        public int CommentObjId
        {
            get
            {
                if (ViewState["CommentObjId"] == null)
                {
                    ViewState["CommentObjId"] = 0;
                }
                return (int)ViewState["CommentObjId"];
            }
            set { ViewState["CommentObjId"] = value; }
        }


        public int CommentObjType
        {
            get
            {
                if (ViewState["CommentObjType"] == null)
                {
                    ViewState["CommentObjType"] = 0;
                }
                return (int)ViewState["CommentObjType"];
            }
            set { ViewState["CommentObjType"] = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            postPointModel = new PostPointModel();
            postPointModel.ObjId = this.CommentObjId;
            postPointModel.ObjTypeId = this.CommentObjType;
        }
    }

    public class PostPointModel
    {
        public int ObjId { get; set; }
        public int ObjTypeId { get; set; }

    }
}